package modellayer;


/**
 * The class ProductCopy
 * ?
 * ?
 * ?
 * ?
 * ?
 * ?
 * 
 * @author Allan Eriksen, Christian Stidsborg, Andreas Rye, Casper Madsen, Stefan Bols 
 * @version 051213
 */
public class ProductCopy
{
    private static int counter;
    
    private Product product;
    private int copyNo;
    private double price;

    /**
     * This function assigns a number to a product
     * @Param Product product
     */
    public ProductCopy(Product product)
    {
        counter++;
        copyNo = counter;
        this.product = product;
    }
    
    /**
     * Accessor method.
     * @return copyNo
     */
    public int getCopyNo()
    {
        return copyNo;
    }
    
    /**
     * Accessor method.
     * @return product
     */
    public Product getProductObj()
    {
        return product;
    }
    
    public double getPrice()
    {
    	price = product.getPrice();
    	
    	return price;
    }
    
    public String getProductNo()
    {
    	return product.getProductNo();
    }
}
